#pragma once
#include "Animal.h"
class Dog :
	public Animal
{
protected:
	std::string name;
public:
	Dog(const char* nm = "A") : name("A") { if (nm != NULL) name = nm; }
	Dog(const std::string& nm) : name(nm) { }
    virtual void iam()
    {
        cout << "Dog:" << name << endl;
    }
    void  hello()
    {
        cout << "Dog::hello from " << name << endl;
    }
    void common()
    {
        cout << "Dog::common" << endl;
    }

};

